﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MeetSomeNearbyStrangerWebApi.ConfigurationSettings
{
    public class ControllerAction
    {
        public string Name { get; set; }

        public HttpMethod Type { get; set; }

        public void ChangeName(string newName)
        {
            this.Name = newName;
        }

        public override bool Equals(object obj)
        {
            ControllerAction other = obj as ControllerAction;
            return this.Name.Equals(other.Name);
        }
    }
}